{layout name="layout" /}
<div class="titlebar">
    <div class="fn-fb"><i class="iconfont icon-line-chart_icon"></i>营业额与订单数</div>
</div>
<div id="actionbar">
    <div class="fn-left">
        <form id="form" action="{:url('bank/counts')}" method="get">
            <input placeholder="开始日期" class="input ui-time" type="text" readonly="readonly" name="starttime" value="{if $starttime}{$starttime|date="Y-m-d H:i:s"}{/if}" /> 至 
            <input placeholder="结束日期" class="input ui-time" type="text" readonly="readonly" name="endtime" value="{if $endtime}{$endtime|date="Y-m-d H:i:s"}{/if}" />
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
</div>
<div class="titlebar fn-clear">
    <div class="fn-fb fn-left"><i class="iconfont icon-navlist"></i>订单数据</div>
</div>
<div class="counts">
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$bank|money}</div>
            <div class="text">微信支付(元)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-chuzhijine"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$point|money}</div>
            <div class="text">积分额(积分)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-wodedingdan2"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$order_wechat}</div>
            <div class="text">微信支付(单)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-wodedingdan2"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$order_point}</div>
            <div class="text">积分支付(单)</div>
        </div>
    </div>
</div>
<div class="titlebar fn-clear">
    <div class="fn-fb fn-left"><i class="iconfont icon-navlist"></i>委托数据</div>
</div>
<div class="counts">
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-wodedingdan2"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$entrust}</div>
            <div class="text">委托中(个)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-wodedingdan2"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$entrust_rebate}</div>
            <div class="text">已成交(个)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$entrust_money/100|money}</div>
            <div class="text">成交金额</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-wodedingdan2"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$entrust_diy}</div>
            <div class="text">已回购(个)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$entrust_diy_money/100|money}</div>
            <div class="text">回购金额</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left"><i class="iconfont icon-renminbi1688"></i></div>
        <div class="fn-right fn-tar">
            <div class="num">{$bonus_money/100|money}</div>
            <div class="text">分账金额<br /><span class="gray fn-f12">不包含代理(仅参数)</span></div>
        </div>
    </div>
</div>
<div class="titlebar fn-clear">
    <div class="fn-fb fn-left"><i class="iconfont icon-navlist"></i>客户收益统计</div>
</div>
<div class="counts">
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-chongzhi"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$due_money/100|money}</div>
            <div class="text">应付(积分)<span class="fn-f12 gray">[不包含已提现和已购买商品]</span></div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-chongzhi"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$shop_money/100|money}</div>
            <div class="text">购物(积分)<span class="fn-f12 gray">[不包含已购物]</span></div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-chongzhi"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$lack_money/100|money}</div>
            <div class="text">提现中(积分)</div>
        </div>
    </div>
    <div class="box">
        <div class="fn-left">
            <i class="iconfont icon-chongzhi"></i>
        </div>
        <div class="fn-right fn-tar">
            <div class="num">{$alllack_money/100|money}</div>
            <div class="text">已提现(积分)</div>
        </div>
    </div>
</div>
<style type="text/css">
    .counts{display: flex;}
    .counts .box{flex: 1;background: #efefef;margin: 10px;padding: 20px;color: #333}
    .counts .box:first-child{margin-left: 0px;}
    .counts .box:last-child{margin-right: 0px;}
    .counts .box .iconfont{font-size:40px;}
    .counts .box .num{font-size:25px;}
    .counts .box .text{font-size:14px;}
</style>
<script type="text/javascript">
    Do('base','layer','form','date', function () {
        $('#form').isForm({types:1});
    })
</script>